package com.code.zg.rxapplication.bean;

import android.support.annotation.NonNull;

/**
 * Created by zhanggang on 2017/8/25.
 */

public class AppInfo implements Comparable<Object> {
    long mLastUpdateTime;
    String mName;
    String mIcon;

    public AppInfo( String mName, long mLastUpdateTime,String mIcon) {
        this.mLastUpdateTime = mLastUpdateTime;
        this.mName = mName;
        this.mIcon = mIcon;
    }

    public long getmLastUpdateTime() {
        return mLastUpdateTime;
    }

    public void setmLastUpdateTime(long mLastUpdateTime) {
        this.mLastUpdateTime = mLastUpdateTime;
    }

    public String getmName() {
        return mName;
    }

    public void setmName(String mName) {
        this.mName = mName;
    }

    public String getmIcon() {
        return mIcon;
    }

    public void setmIcon(String mIcon) {
        this.mIcon = mIcon;
    }

    @Override
    public int compareTo(@NonNull Object o) {
        AppInfo appInfo= (AppInfo) o;

        return getmName().compareTo(appInfo.getmName());
    }
}
